#include <iostream>
using namespace std;

int count = 0;
void dfs(int index, int sum)
{
    //index 代表点数
    if (index == 13)
    {
        if (sum == 13)
        {
            count++;
        }
        return; 
    }
    //sum 代表手中拍数
    if (sum > 13)
        return;
    //sum 
    for (int j = 0; j <= 4; j++) //牌型有4种
    {
        sum = sum + j;
        dfs(index + 1, sum);
        sum = sum - j;
    }

}

int main()
{
    dfs(0, 0);
    cout << count;
    return 0;
}